package cn.org.xiaosheng.Tree;

import java.util.List;

public class Menu {

    private List<Menu> subMenus;

    private Integer parentId;

    private Integer id;

    public List<Menu> getSubMenus() {
        return subMenus;
    }

    public void setSubMenus(List<Menu> subMenus) {
        this.subMenus = subMenus;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Menu(Integer id, Integer parentId, List<Menu> subMenus) {
        this.id = id;
        this.parentId = parentId;
        this.subMenus = subMenus;
    }
}
